/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.chapter5.designpatters.structuralpattern.facade;

/**
 *
 * @author Sakhe
 */
public class Facade {
  
    public int cubeX(int x){
    Class1 class1 = new Class1();
    return class1.doSomethingComplicated(x);
    }
    public int cubeXTimes2(int x ){
    Class1 class1 = new Class1();
    Class2 class2 = new Class2();
    return class2.doAnotherThing(class1,x);
    }
    public int xToSixthPowerTimes2(int x){
    Class1 class1 = new Class1();
    Class2 class2 = new Class2();
    Class3 class3 = new Class3();
    return class3.doMoreStuff(class1,class2,x);
    }
}
